package com.workcell.workdata.xthings.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.workcell.workdata.xthings.constant.ExtOutputAttributes;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

/**
 * 码库温湿度计信息表
 *
 * @author guoguo
 * @since 2023-04-15
 */
@Data
@TableName("t_code_temperature_humidity")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "温湿度计二维码")
public class CodeTemperatureHumidity extends Model<CodeTemperatureHumidity> {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty("二维码信息ID")
	private String codeId;

    @ApiModelProperty("温湿度计ID")
    private Long temperatureHumidityId;

    @ApiModelProperty("厂家设备编号")
	@ExtOutputAttributes(key = "厂家设备编号")
    private String deviceNo;

    @ApiModelProperty("短链码")
    private String chainNum;

    @ApiModelProperty("设备名称")
	@ExtOutputAttributes(key = "设备名称")
    private String name;

    @ApiModelProperty("厂商名称")
	@ExtOutputAttributes(key = "厂商名称")
	private String manufacturer;

    @ApiModelProperty("产品类型")
	private String dcProductType;

    @ApiModelProperty("型号")
	@ExtOutputAttributes(key = "型号")
    private String dcModel;

    @ApiModelProperty("状态")
    private String state;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建人")
    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新人")
    private String updateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
}
